﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="configshop_inner2.aspx.cs"
    Inherits="map.manage.configshop_inner2" Title="选择样式" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        *
        {
            font-size: small;
            margin: 0;
            padding: 0;
        }
    </style>
<script src="../js/dhtmlwindow.js" type="text/javascript"></script>
    <script type="text/javascript">
    function setsrc(url)
    {
        var frame = getElement("myFrame2");
        frame.src = url;

    }
    function newpage(_url)
    {
        window.open (_url,'_blank','height=600, width=760, top=50,left=100, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
    }    
    
    function adjustMyFrameHeight(frameid)
    {
        var frame = getElement(frameid);
    //alert(frame.contentDocument.body.offsetHeight);   
        var frameDoc = getIFrameDocument(frameid);

        frame.height = frameDoc.body.offsetHeight;

    }
        function getElement(aID)
    {

        return (document.getElementById) ?
            document.getElementById(aID) : document.all[aID];
    }

    function getIFrameDocument(aID){
        var rv = null;
        var frame=getElement(aID);
        // if contentDocument exists, W3C compliant (e.g. Mozilla)
        if (frame.contentDocument)
            rv = frame.contentDocument;
        else // bad IE  ;)
            rv = document.frames[aID].document;
        return rv;
    }    
    function adjustFrameHeight(height,frame,zdiv)
    {
        document.getElementById(frame).height = height;
    }
    
    function comfirmdiv(sel,kid)
    {
        var a=32; 
        for(var i=0;i<a;i++)
        {
           var ss="ctl00_ContentPlaceHolder1_RadioButtonList1_"+i;
           var aa=document.getElementById(ss).defaultValue;
           if(document.getElementById(ss).checked)  //注意checked不能写成Checked，要不然不成功
           {
                parent.document.getElementById(parent.curdiv).childNodes[1].innerHTML = parent.gethtml(i,kid);
                parent.savediv("");
                break;
           }
        }
    }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
                <tr>
                    <td style=" vertical-align: top;">
                        <asp:RadioButtonList ID="RadioButtonList1" AutoPostBack="true" runat="server"
                            OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"
                            RepeatColumns="4" >
                            <asp:ListItem>招牌栏目</asp:ListItem>
                            <asp:ListItem>网站导航栏</asp:ListItem>
                            <asp:ListItem>商品分类</asp:ListItem>
                            <asp:ListItem>商品列表</asp:ListItem>
                            <asp:ListItem>精品推荐</asp:ListItem>
                            <asp:ListItem>最新商品</asp:ListItem>
                            <asp:ListItem>商品内容</asp:ListItem>
                            <asp:ListItem>基本信息</asp:ListItem>
                            <asp:ListItem>当前页面位置</asp:ListItem>
                            <asp:ListItem>论坛文章列表</asp:ListItem>
                            <asp:ListItem>论坛文章内容</asp:ListItem>
                            <asp:ListItem>友情链接列表</asp:ListItem>
                            <asp:ListItem>站内搜索</asp:ListItem>
                            <asp:ListItem>搜索结果</asp:ListItem>
                            <asp:ListItem>联系信息</asp:ListItem>
                            <asp:ListItem>实体照片</asp:ListItem>  
                            <asp:ListItem>关于我们</asp:ListItem> 
                            <asp:ListItem>公告</asp:ListItem> 
                            <asp:ListItem>商店位置</asp:ListItem>                             
                            <asp:ListItem>自定义内容块0</asp:ListItem>
                            <asp:ListItem>自定义内容块1</asp:ListItem>
                            <asp:ListItem>自定义内容块2</asp:ListItem>
                            <asp:ListItem>自定义内容块3</asp:ListItem>
                            <asp:ListItem>自定义内容块4</asp:ListItem>
                            <asp:ListItem>自定义内容块5</asp:ListItem>
                            <asp:ListItem>自定义内容块6</asp:ListItem>
                            <asp:ListItem>自定义内容块7</asp:ListItem>
                            <asp:ListItem>自定义内容块8</asp:ListItem>
                            <asp:ListItem>自定义内容块9</asp:ListItem>
                            <asp:ListItem>自定义内容块10</asp:ListItem>
                            <asp:ListItem>自定义内容块11</asp:ListItem>
                            <asp:ListItem>自定义内容块12</asp:ListItem>
                        </asp:RadioButtonList>
                       
                        <asp:Button ID="Button3" runat="server" Text="确定" OnClick="Button3_Click" />
                        &nbsp;
                        <asp:LinkButton ID="LinkButton3" runat="server" OnClick="Button1_Click1">修改选中内容</asp:LinkButton>
                            &nbsp; &nbsp; &nbsp;
                            <asp:LinkButton ID="LinkButton4" runat="server" OnClick="Button2_Click">刷新内容</asp:LinkButton>
                            &nbsp; &nbsp;<asp:Label ID="Label_id" Visible="false" runat="server" Text="编码："></asp:Label>
                            <asp:TextBox ID="TextBox_id" Visible="false" runat="server"></asp:TextBox>
                    </td>
                    </tr><tr>
                    <td style="vertical-align: top;">
                        <iframe id='myFrame2' frameborder="1" scrolling="no" width="100%" src="" onload='adjustMyFrameHeight("myFrame2");'>
                        </iframe>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
